package cn.flexui.flexuiserver.domain.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;

import java.io.Serial;
import java.math.BigDecimal;

/**
 * <p>
 * 会员卡
 * </p>
 *
 * @author apeto
 * @since 2024-09-22 10:50:52
 */
@Getter
@Setter
@Accessors(chain = true)
@TableName("member_card")
@Schema(name = "MemberCard", description = "会员卡")
public class MemberCard extends BaseEntity<MemberCard> {

    @Serial
    private static final long serialVersionUID = 1L;

    @Schema(description = "会员卡名")
    @TableField("card_name")
    private String cardName;

    @Schema(description = "卡状态")
    @TableField("card_state")
    private Byte cardState;

    @Schema(description = "卡金额")
    @TableField("amount")
    private BigDecimal amount;

    @Schema(description = "划线金额")
    @TableField("line_amount")
    private BigDecimal lineAmount;

    @Schema(description = "有效期")
    @TableField("card_day")
    private Integer cardDay;

    @Schema(description = "推荐")
    @TableField("recommend")
    private Boolean recommend;
}
